import {
  ITextConfigType,
  IUploadConfigType,
  TTextDefaultType,
  TUploadDefaultType,
} from '@/components/FormComponents/types';

export type TVideoEditData = Array<IUploadConfigType | ITextConfigType>;
export interface IVideoConfig {
  name: TTextDefaultType;
  poster: TUploadDefaultType;
  path: TTextDefaultType;
}

export interface IVideoSchema {
  editableData: TVideoEditData;
  config: IVideoConfig;
}

const Video: IVideoSchema = {
  editableData: [
    {
      key: 'poster',
      name: '视频封面',
      type: 'Upload',
    },
    {
      key: 'path',
      name: '视频链接',
      type: 'Text',
    },
  ],
  config: {
    name: '胚胎的发育',
    poster: [
      {
        uid: '001',
        name: 'image.png',
        status: 'done',
        url: 'https://public.data.dev.dt-pf.com/platform-file/5f055faa03405f151cf93a52/45/e6/b19386b7-f0be-4700-92a7-ac490cdc9325/thumb.jpg',
      },
    ],
    path: 'https://public.data.dev.dt-pf.com/platform-file/5f055faa03405f151cf93a52/45/e6/b19386b7-f0be-4700-92a7-ac490cdc9325/source.mp4',
  },
};

export default Video;
